import './assets/main.scss'
import ElementPlus from 'element-plus'
import { createApp } from 'vue'
import App from './App.vue'
import router from '@/router'
import {createPinia}from 'pinia';
import {createPersistedState} from "pinia-persistedstate-plugin";
import locale from 'element-plus/dist/locale/zh-cn.js'
import 'element-plus/dist/index.css'
import Echarts from "vue-echarts"
import * as echarts from "echarts"
const persist= createPersistedState();
const pinia=createPinia();
const app=createApp(App);

app.component("v-chart", Echarts)
app.config.globalProperties.$echarts = echarts

app.use(ElementPlus,{locale});
app.use(router);
app.use(pinia);
pinia.use(persist);
app.mount('#app');
